package packet.creators;

import client.DbgPlayer;
import packet.transfer.write.Packet;
import packet.opcode.SendPacketOpcode;
import community.DbgCarnivalParty;
import packet.transfer.write.WritingDbg;

public class MonsterCarnivalPacket {

    /*    MONSTER_CARNIVAL_START = 0xE2
    MONSTER_CARNIVAL_OBTAINED_CP = 0xE3
    MONSTER_CARNIVAL_PARTY_CP = 0xE4
    MONSTER_CARNIVAL_SUMMON = 0xE5
    MONSTER_CARNIVAL_DIED = 0xE7*/

//    public static Packet startMonsterCarnival(final maplePlayer chr, final int enemyavailable, final int enemytotal) {
//	Writingmaple mplew = new Writingmaple();
//
//	mplew.writeShort(SendPacketOpcode.MONSTER_CARNIVAL_START.getValue());
//        final mapleCarnivalParty friendly = chr.getCarnivalParty();
//	mplew.write(friendly.getTeam());
//        mplew.writeShort(chr.getAvailableCP());
//        mplew.writeShort(chr.getTotalCP());
//	mplew.writeShort(friendly.getAvailableCP());
//        mplew.writeShort(friendly.getTotalCP());
//        mplew.writeShort(enemyavailable);
//        mplew.writeShort(enemytotal);
//	mplew.writeLong(0);
//	mplew.writeShort(0);
//
//	return mplew.getPacket();
//    }
//
//    public static Packet playerDiedMessage(String name, int lostCP, int team) { //CPQ
//	Writingmaple mplew = new Writingmaple();
//
//	mplew.writeShort(SendPacketOpcode.MONSTER_CARNIVAL_DIED.getValue());
//	mplew.write(team); //team
//	mplew.writeMapleAsciiString(name);
//	mplew.write(lostCP);
//
//	return mplew.getPacket();
//    }
//
//    public static Packet CPUpdate(boolean party, int curCP, int totalCP, int team) {
//	Writingmaple mplew = new Writingmaple();
//	if (!party) {
//	    mplew.writeShort(SendPacketOpcode.MONSTER_CARNIVAL_OBTAINED_CP.getValue());
//	} else {
//	    mplew.writeShort(SendPacketOpcode.MONSTER_CARNIVAL_PARTY_CP.getValue());
//	    mplew.write(team);
//	}
//	mplew.writeShort(curCP);
//	mplew.writeShort(totalCP);
//
//	return mplew.getPacket();
//    }
//
//    public static Packet playerSummoned(String name, int tab, int number) {
//	Writingmaple mplew = new Writingmaple();
//
//	mplew.writeShort(SendPacketOpcode.MONSTER_CARNIVAL_SUMMON.getValue());
//	mplew.write(tab);
//	mplew.write(number);
//	mplew.writeMapleAsciiString(name);
//
//	return mplew.getPacket();
//    }
}
